#define _CRT_SECURE_NO_WARNINGS 1
#include"iterator.h"
#include"reverse_iterator.h"
void test_iterator1()
{
	my_list::list<int> l1;
	l1.push_back(1);
	l1.push_back(2);
	l1.push_back(3);
	l1.push_back(4);
	l1.push_back(5);
	const my_list::list<int> l2(l1.begin(), l1.end());
	my_list::list<int>::reverse_iterator rit = l1.rbegin();
	while (rit != l1.rend())
	{
		cout << (*rit) << endl;
		rit++;
	}
	my_list::list<int>::const_reverse_iterator crit = l2.rbegin();
	while (crit != l2.rend())
	{
		cout << (*crit) << endl;
		crit++;
	}

}
void test_iterator2()
{
	my_list::list<int> l1;
	l1.push_back(1);
	l1.push_back(2);
	l1.push_back(3);
	l1.push_back(4);
	l1.push_back(5);
	const my_list::list<int> l2(l1.begin(), l1.end());
	my_list::list<int>::const_iterator it = l2.begin();
	for (auto c : l2)
	{
		cout << c << endl;
	}
}
int main()
{
	test_iterator1();
	return 0;
}